<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
	<meta charset="UTF-8">
	<title>线下银行卡信息管理</title>
	<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
	<jsp:include page="../com/header.jsp"></jsp:include>
	<script type="text/javascript" src="../../js/comm/listcomm.js"></script>
	<script type="text/javascript">
	var contentUrl = root + "cms/bankInfo/findBankInfoNEStatusPage";
	var editUrl = 'bankInfoEdit.jsp?id=';
	var operateUrl = root + 'cms/bankInfo/operateBankInfoByIds';
	function getfilter(){
		var _jsonFilter = "{}";
		return _jsonFilter;
	}
	$(document).ready(function(){
		//点击新增按钮
		$("#addSome1").click(function(){
			if($('#mycontent').find('tr').length > 0){
				myAlert("只能新增一条银行卡信息，要想新增请先删除");
				return;
			}
			location.href = editUrl + 0;
		});
	});
	</script>
    </head>
    <body>
      <section>
          <div>
              <div class="col-xs-12">
                  <div class="box">
                      <div class="box-body table-responsive" style="clear:both;">
                          <input type="button" value="新增" id="addSome1" class="btn btn-color">
                          <input type="button" value="编辑" id="updateSome" class="btn btn-color">
                          <input type="button" value="删除" id="deleteSome" class="btn btn-color">
                      </div>
                      <div class="box-body table-responsive">
                          <table id="example2" class="table table-bordered table-hover">
                              <thead>
                                  <tr>
                                      <th width="30"><input type="checkbox" id="_selectAll" /></th>
          		               		  <th width="80">银行卡号</th>
				               		  <th width="80">账户名称</th>
				               		  <th width="80">支行名称</th>
				               		  <th width="80">状态</th>
                                  </tr>
                              </thead>
                              <!-- 表格内容 start -->
                              <tbody id="mycontent"></tbody>
                              <!-- 表格内容 end -->
                          </table>
                          <!-- 分页标签 start -->
                          <div class="row page_big_div" id="displayPage"></div>
                          <!-- 分页标签 end -->
                          <script id="tableContentTmple" type="text/x-jsrender">
								<tr>
									<td><input id="ck_{{:id}}" ckId="{{:id}}" ckStatus="{{:status}}" class="ckSelect" type="checkbox" /></td>
									<td>{{:bankNumber}}</td>
									<td>{{:bankName}}</td>
									<td>{{:childBankName}}</td>
									<td>{{if status==1}}正常{{else status==2}}已发布{{else status==3}}已删除{{else status==-1}}已锁定{{else}}无效{{/if}}</td>
								</tr>
						  </script>
                  </div>
              </div>
          </div>
      </section>
    </body>
</html>